package com.gxa.logistics.service;

import com.gxa.logistics.common.base.PageWrapperDTO;
import com.gxa.logistics.common.base.RespResult;
import com.gxa.logistics.domain.dto.EmployeeReqListDTO;
import com.gxa.logistics.domain.dto.EmployeeSaveDTO;
import com.gxa.logistics.domain.dto.EmployeeUpdateDTO;
import com.gxa.logistics.domain.entity.Employee;
import com.gxa.logistics.domain.entity.User;
import com.gxa.logistics.domain.vo.EmployeeVO;

import java.util.List;

public interface EmployeeService {
    //查询员工列表
    RespResult<PageWrapperDTO<EmployeeVO>> list(EmployeeReqListDTO employeeReqListDTO);

    //添加员工

    void insertEmployee(EmployeeSaveDTO employeeSaveDTO);

    //修改员工
    void updateEmployee(EmployeeUpdateDTO employeeUpdateDTO);

    //删除员工
    void deleteEmployeeById(Integer employeeId);

    //冻结员工
    void freezeEmployeeById(Integer employeeId);

    User findByUsername(String username);

    RespResult<List<EmployeeVO>> findById(Integer employeeId);
}
